import Vue from "vue";

Vue.mixin({
    methods: {
        // 定义全局混入
        hasAuth(perm){
            var authority = this.$store.state.menus.permList
            return authority.indexOf(perm) > -1     //判断perm是否在authority中
        }
    }
})


